<?php

namespace Modules\Car\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class RecognizeDrivingRequest extends FormRequest
{
    public function rules()
    {
        return [
            //'openid' => 'required',
           'plate_number'=>'require|unique:recognize_driving_licenses'
        ];
    }
    public function messages()
    {
        return [
            'required'=>":attribute 必填项",
            'plate_number.unique'=>'车辆已存在'
        ];
        //return parent::messages(); // TODO: Change the autogenerated stub
    }

    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }
}
